From: Carlos Garnacho Date: Thu, 3 Aug 2017 19:59:26 +0000 (+0200) Subject: padOsd: Add one to the >1 rings X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~179 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=508e3e518e4de078cd8e9f6fbb15fa695824680f;p=gnome-shell.git padOsd: Add one to the >1 rings Ring leader/label SVG elements for the second ring are named *Ring2*. We need to add one here for elements >1, this is consistent with strips. https://bugzilla.gnome.org/show_bug.cgi?id=785358 --- diff --git a/js/ui/padOsd.js b/js/ui/padOsd.js index fb7ee6618..34ef96bb9 100644 --- a/js/ui/padOsd.js +++ b/js/ui/padOsd.js @@ -513,7 +513,7 @@ var PadDiagram = new Lang.Class({ }, getRingLabelCoords: function (number, dir) { - let numStr = number > 0 ? number.toString() : ''; + let numStr = number > 0 ? (number + 1).toString() : ''; let dirStr = dir == CW ? 'CW' : 'CCW'; let labelName = 'LabelRing' + numStr + dirStr; let leaderName = 'LeaderRing' + numStr + dirStr;